package com.yxe.service.impl;

import com.yxe.dto.SubletDto;
import com.yxe.dto.SubletVo;
import com.yxe.mapper.SubletMapper;
import com.yxe.service.SubletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SubletServiceImpl implements SubletService {

    @Autowired
    private SubletMapper subletMapper;
    @Override
    public List<SubletDto> findById(Integer uid) {

        return subletMapper.findById(uid);
    }

    @Override
    public void addSublet(SubletVo subletVo) {
        subletMapper.addSublet(subletVo);
    }

    @Override
    public SubletVo findSubletRecord(Integer uid) {
        return subletMapper.findSubletRecord(uid);
    }

    @Override
    public void deleteSubletRecord(Integer uid) {
        subletMapper.deleteSubletRecord(uid);
    }
}
